package com.yupi.aicodehelper.ai.dto;
import dev.langchain4j.data.message.ChatMessage;
import dev.langchain4j.data.message.TextContent;
import dev.langchain4j.data.message.*;

import java.time.Instant;
import java.util.Arrays;
import java.util.List;

public class TimedMessage {
    private final ChatMessage message;
    private final String type;        // USER / AI / SYSTEM
    private final Instant createdAt;  // 消息生成时间

    public TimedMessage(ChatMessage message, String type, Instant createdAt) {
        this.message = message;
        this.type = type;
        this.createdAt = createdAt;
    }

    public ChatMessage getMessage() {
        return message;
    }

    public String getType() {
        return type;
    }

    public Instant getCreatedAt() {
        return createdAt;
    }

}